package com.carpedil.ms.mapper;

import com.carpedil.ms.entity.Stock;
import org.springframework.stereotype.Repository;

import java.util.List;

/** @author Administrator */
@Repository
public interface StockMapper {
  /**
   * checkStockById(Integer id);
   *
   * @param id id
   * @return Stock
   */
  Stock checkStockById(Integer id);

  int updateStock(Stock stock);

  List<Stock> list();
}
